<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>案例展示</title>
  <link rel="stylesheet" href="__PUBLIC__/css/cases.css">
</head>
<body>
<div class="container">
    <include file="./Home/Tpl/public/header.html" />
  <div class="banner">
	<img src="__PUBLIC__/images/cases_banner.gif" alt="">
  </div>
  <div class="main">
	<div class="main_nav">
	  <ul>
		<li class="main_nav_first" <?php if ($cateid == 0) {
		  echo 'style="background:#FFA72B"';
		} ?>><a class="block" href="cases.php">所有分类</a></li>
		<?php foreach ($cate as $value) { ?>
          <li <?php if ($cateid == $value['cateid']) {
			echo 'style="background:#FFA72B"';
		  } ?>>

          <a class="block" href="{:U('Cases/index?cateid='.$value['cateid'])}">
              <?php echo $value["cate_name"];?>
          </a>
          </li>
		<?php } ?>
	  </ul>
	</div>
	<div class="main_content">
	  <ul>
		<?php foreach ($cases as $k => $value) { ?>
		  <li class="<?php if (($k + 1) % 3 == 0) {
			echo 'right3';
		  } ?>">
			<a href="{:U('Cases/cases_detail?id='.$value['id'])}" target="_blank">
			  <img class="case_img" src="__PUBLIC__/<?php echo $value['src'] ?>" alt="">
			</a>

			<p>
			  <a href="cases_01.php"><?php echo $value['title'] ?></a>
			</p>
		  </li>
		<?php } ?>
	  </ul>
	</div>
	<div class="main_next">
	  <?php echo $page_link; ?>
	</div>
  </div>
    <include file="./Home/Tpl/public/footer.html" />
</div>
</body>
</html>